<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_team($selector)}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Oferta</h2>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="500">Oferta </th><th width="120" nowrap>Cidade/Categoria</th><th width="100">Data</th><th width="50">Status</th><th width="60" nowrap>Preço</th><th width="140">Operação</th></tr>
					<!--{loop $teams $index $one}-->
					<!--${$one['state'] = team_state($one)}-->
					<tr ${$index%2?'':'class="alt"'} id="team-list-id-{$one['id']}">
						<td style="text-align:left;"><a class="deal-title" href="/team.php?id={$one['id']}" target="_blank">{$one['title']}</a></td>
						<td>{$cities[$one['city_id']]['name']}<br/>{$groups[$one['group_id']]['name']}</td>
						<td>${date('d-m-Y',$one['begin_time'])}<br/>${date('d-m-Y',$one['end_time'])}</td>
						<td>{$one['now_number']}/{$one['min_number']}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['team_price'])}<br/><span class="money">{$currency}</span>${moneyit($one['market_price'])}</td>
						<td class="op" nowrap><a href="/ajax/manage.php?action=teamdetail&id={$one['id']}" class="ajaxlink">Detalhes</a><!--{if $one['state']=='none'}-->｜<a href="/manage/team/edit.php?id={$one['id']}">Editar</a><!--{if $one['now_number']==0}-->｜<a href="/ajax/manage.php?action=teamremove&id={$one['id']}" class="ajaxlink" ask="Excluir esta oferta, você tem certeza?" >Apagar</a><!--{/if}--><!--{elseif in_array($one['state'],array('success','soldout'))}-->|<a href="/manage/team/down.php?id={$one['id']}" target="_blank">Download</a><!--{elseif $one['state']=='failure'}-->｜<a href="/ajax/manage.php?action=teamrefund&id={$one['id']}" class="ajaxlink" ask="Refund, are you sure?">Restituição</a><!--{else}-->Restituir todos<!--{/if}--></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="6">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
